<?php

/**
 * Persona filter form.
 *
 * @package    proyecto-cnrt
 * @subpackage filter
 * @author     ftoledo@pressenter.com.ar
 * @version    SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PersonaFormFilter extends BasePersonaFormFilter
{
  public function configure()
  {
     $this->validatorSchema['nombre'] = new sfValidatorString(array('required'=>true, 'max_length' => 3), array('max_length'=>'Cadena demasiado larga'));

     //$this->widgetSchema['empresa_id'] = new sfWidgetFormDoctrineChoice(array('query'=>EmpresaTable::getEmpresasActivas(), 'model' => 'Empresa', 'add_empty' => true));
      $this->widgetSchema['empresa_id'] = new sfWidgetFormInput();
  }
}
